type service = {
  HR: string;
  MANGMENT: string;
};
// dev环境
const dev_url = "https://supernova-api.igky.cc/";
const dev_service: service = {
  HR: ``,
  MANGMENT: `${dev_url}management/api`
};
// 测试环境
const sta_url = "https://supernova-api.igky.cc/";
const sta_serice: service = {
  HR: ``,
  MANGMENT: `${sta_url}management/api`
};
// 生产环境
const prod_url = "https://sys-api.iguokao.com/";
const prod_server: service = {
  HR: ``,
  MANGMENT: `${prod_url}management/api`
};

let config: service;
switch (import.meta.env.MODE) {
  case "development":
    config = dev_service;
    break;
  case "staging":
    config = sta_serice;
    break;
  case "production":
    config = prod_server;
    break;
  default:
    break;
}
export { config };
